package com.wjy.common.dict;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @author wjy
 * @data 2019年3月11日
 * @desc 等级枚举
 */
public enum GradeEnum {

    GradeEnum_1(1, "初"), GradeEnum_2(2, "中"), GradeEnum_3(3, "高");

    @EnumValue
    private Integer grade;
    private String name;

    private GradeEnum() {

    }

    private GradeEnum(Integer grade, String name) {
        this.grade = grade;
        this.name = name;
    }

    public Integer getGrade() {
        return grade;
    }

    public void setGrade(Integer grade) {
        this.grade = grade;
    }

    @JsonValue
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
